package com.zzy.model;


import com.fasterxml.jackson.annotation.JsonManagedReference;
import org.codehaus.jackson.annotate.JsonBackReference;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**菜单实体 备用*/
@Entity
@Table(name = "sys_menu")
public class Menu implements Serializable {


    @Id
    private java.lang.String id;
    private java.lang.String name;
    private java.lang.String url;
    private String other;
    private java.lang.String parentId;
    private java.lang.String parentName;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    public java.lang.String getId() {
        return id;
    }

    public void setId(java.lang.String id) {
        this.id = id;
    }

    @Column(name = "name", nullable = true)
    public java.lang.String getName() {
        return name;
    }

    public void setName(java.lang.String name) {
        this.name = name;
    }

    @Column(name = "other", nullable = true,length = 1000)
    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }
    @Column(name = "parentId", nullable = true,length = 36)
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Column(name = "parentName", nullable = true,length = 500)
    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
    @Column(name = "url", nullable = true,length = 500)
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
